<template>
  <div>
    <van-tabbar v-model="active" route  placeholder>
      <van-tabbar-item icon="home-o" to="/home" >首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/cate" >分类页</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/cart" >购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/user" >个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
}
</script>